home *** CD-ROM | disk | FTP | other *** search
/ Guidemac 2 / Guidemac 2.iso / Logiciels divers T1 / PAO⁄TdT / LaserWriter Image Centring / Read Me; Set Offset < prev    next >
Text File  |  1993-09-22  |  1KB  |  17 lines

  1. The PostScript code in the Current Margin Settings file will print a page showing the current margin settings, and a frame around the page to help identify the offset. Use the LaserWriter Utility v7.0, or later, to download the file.
  2.  
  3. The unit for offset is a single device pixel (1/300 inch).
  4.  
  5. For metric measurements
  6. Amount in 300th of an inch = amount to be moved in mm ÷ (25.4 ÷ 300), or (amount to be moved in mm ÷ 25.4) x 300
  7.  
  8. The setmargins operator is in the statsdict, and must be executed outside the server loop so its changes will persist across power cycles. The following PostScript code is an example. It shifts the image 18 pixels up and 26 pixels to the left. It first exits the server loop and, therefore, modifies the parameters in EEPROM:
  9.  
  10. serverdict begin 0 exitserver
  11. statusdict begin
  12. -18 -26 setmargins
  13.  
  14. Enter the required settings in the Centre Image file, and then use the LaserWriter Utilitiy again to download the file to the printer. Note that only whole numbers will be accepted.
  15.                   
  16. Note that the EEPROM can only handle so many writes before permanently reverting to the default settings. The number is at least 10,000 for most LaserWriters, or over 50,000 for the IIf and IIg. If the maximum number is exceeded, then it will be necessary to download the new settings each time the printer is powered on.
  17.